package com.yxhl.zoume.core.main.model;

import com.yxhl.zoume.core.main.info.MainEntrance;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * 跳转到主页的入口信息
 * Created by Ethan on 16/5/7.
 */
public class MainEntranceInfo<T> implements Serializable {

    private MainEntrance mainEntrance;
    private Map<Enum<MainEntrance>, T> entranceMap;

    public MainEntranceInfo(MainEntrance mainEntrance) {
        this.mainEntrance = mainEntrance;
        entranceMap = new HashMap<>();
    }

    public MainEntrance getMainEntrance() {
        return mainEntrance;
    }

    public void setMainEntrance(MainEntrance mainEntrance) {
        this.mainEntrance = mainEntrance;
    }

    public Map<Enum<MainEntrance>, T> getEntranceMap() {
        return entranceMap;
    }

    public void setEntranceMap(Map<Enum<MainEntrance>, T> entranceMap) {
        this.entranceMap = entranceMap;
    }

    @Override
    public String toString() {
        return "MainEntranceInfo{" +
                "mainEntrance=" + mainEntrance +
                ", entranceMap=" + entranceMap +
                '}';
    }
}
